import Vue from 'vue'
import 'normalize.css/normalize.css' // A modern alternative to CSS resets
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import locale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n
import { Message, MessageBox } from 'element-ui'
import '@/styles/index.scss' // global css
import App from './App'
import store from './store'
import router from './router'
import './utils/dialogdrap'
import './utils/Obtain_permissions'
import '@/icons' // icon
import '@/permission' // permission control
import '@/styles/index.scss' // global css
import 'normalize.css/normalize.css' // A modern alternative to CSS resets
import SlideVerify from 'vue-monoplasty-slide-verify'
import SD365UI from './components/SD365UI'
import directive from "../src/utils/directive"
import eIconPicker, { iconList } from 'e-icon-picker'
import 'e-icon-picker/lib/symbol.js' // 基本彩色图标库
import 'e-icon-picker/lib/index.css' // 基本样式，包含基本图标
import 'font-awesome/css/font-awesome.min.css' // font-awesome 图标库
import 'element-ui/lib/theme-chalk/icon.css' // element-ui 图标库
import svgIcons from 'e-icon-picker/lib/getSvg'// svgIcons 对应的就是图标列表，将图标列表添加到选择器就可以了
import SYSUPDLOG from '@/components/SystemUpgradeLog'
import JsonViewer from 'vue-json-viewer'
import 'element-ui/lib/theme-chalk/index.css';
import Avue from '@smallwei/avue';
import '@smallwei/avue/lib/index.css';
Vue.use(ElementUI)
Vue.use(Avue);
Vue.prototype.$message = Message
Vue.prototype.$confirm = MessageBox.confirm
Vue.use(SlideVerify)
Vue.use(SD365UI)
Vue.use(JsonViewer)
Vue.use(directive)
// set ElementUI lang to EN
Vue.use(ElementUI, { locale })
// 如果想要中文版 element-ui，按如下方式声明
// Vue.use(ElementUI)

// 全局删除增加图标
Vue.use(eIconPicker, {
  FontAwesome: false,
  ElementUI: false,
  eIcon: false, // 自带的图标，来自阿里妈妈
  addIconList: svgIcons,
  removeIconList: [],
  zIndex: 3100,
  // eIconSymbol: true, // 是否开启彩色图标
})
Vue.config.productionTip = false

// 升级日志模块展示对话框
Vue.use(SYSUPDLOG)

new Vue({
  el: '#app',
  router,
  store,
  render: (h) => h(App),
})
